#include <stdio.h>
#include <locale.h>
#include <stdlib.h>
#include <mcheck.h>

int main(int argc, const char *argv[])
{
        mtrace();
        setlocale(LC_ALL, "");
        char *p = (char *)malloc(10);
        if ( NULL == p ) {
                return -1;
        }
        malloc(20);
        free(p);
        muntrace();
        malloc(30);
        return 0;
}
